package deviceinfo.wsm.com.deviceinfo.contact;

import java.util.LinkedHashMap;
import java.util.List;

import deviceinfo.wsm.com.deviceinfo.WsmDeviceInfoSDK;
import deviceinfo.wsm.com.deviceinfo.plugin.com.an.deviceinfo.usercontacts.UserContactInfo;
import deviceinfo.wsm.com.deviceinfo.plugin.com.an.deviceinfo.usercontacts.UserContacts;

/**
 * Created by 王家宝 on 2018/7/9.
 * TEL:18241150668
 * MAIL:639586819@qq.com
 */

public class ContactsInfoUtils {

    public static LinkedHashMap<String, List> getAll() {
        LinkedHashMap<String, List> data = null;
        try {
            UserContactInfo userContactInfo = new UserContactInfo(WsmDeviceInfoSDK.getWsmSDK().getAppContext());
            List<UserContacts> userContacts = userContactInfo.getContacts();
            data = new LinkedHashMap<>();
            data.put("联系人信息", userContacts);
            return data;
        } catch (Exception e) {
            return new LinkedHashMap<>();
        }
    }

}
